package com.datas.db.hibernatebeans;

import com.datas.utils.hibernatebasebean.SimpleHibernateEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import java.util.Date;

/**
 * Created by jige0727 on 2017/5/4.
 * 平台的日志
 */
@Getter
@Setter
@Entity
public class UmsSysLog extends SimpleHibernateEntity {
    public static final String LOG_RESULT_SUCCESS = "success";
    public static final String LOG_RESULT_FAIL = "fail";

    public static final String LOG_TYPE_LOGIN = "login";
    public static final String LOG_TYPE_CREATE = "create";
    public static final String LOG_TYPE_MODIFY = "modify";
    public static final String LOG_TYPE_DELETE = "delete";

    Date actTime = new Date(); //日志时间
    String actType; //日志类型 login->登录
    Integer actorUserId; //操作人的id
    String actorIp; //操作人的ip 暂时不用
    String actResult; //操作结果
    String actContent; //操作内容
    String exInfo1; //额外参数1
}
